package com.cineplanet.dew.service;

import java.util.List;

import com.cineplanet.dew.dao.MerchandizingDAO;
import com.cineplanet.dew.exception.DAOExcepcion;
import com.cineplanet.dew.modelo.Merchandizing;

public class MerchandizingServiceImpl implements MerchandizingService {

	private MerchandizingDAO merchandizingDAO;
	
	public MerchandizingDAO getMerchandizingDAO() {
		return merchandizingDAO;
	}

	public void setMerchandizingDAO(MerchandizingDAO merchandizingDAO) {
		this.merchandizingDAO = merchandizingDAO;
	}

	public List<Merchandizing> obtenerMerchandizing(int idPelicula)
			throws DAOExcepcion {
		return merchandizingDAO.obtenerMerchandizing(idPelicula);
	}

	@Override
	public Merchandizing obtenerMerchandizingUnico(int idMerchandizing)
			throws DAOExcepcion {
		return merchandizingDAO.obtenerMerchandizingUnico(idMerchandizing);
	}

}
